<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        <ui:composition template="../templates/default3.xhtml">  
            <ui:define name="content">
                <h:form binding="#{jobManagerBean.loadViewQuotation}">

                    <p:panel header="Quotations" id="quotes">
                        <p:dataTable id="quotations" var="quotation" value="#{jobManagerBean.quotations}" paginator="false" >     
                            <p:column headerText="Date created"> 
                                <h:outputText value="#{quotation.creationDate}" >  <f:convertDateTime pattern="dd-MMM-yyyy"/></h:outputText>                                           
                            </p:column>
                            <p:column headerText="Amount involved"> 
                                <h:outputText value="#{quotation.totalAmount}" />                                             
                            </p:column> 

                            <p:column headerText="Remark"> 
                                <h:outputText value="#{quotation.remark}" />                                             
                            </p:column> 
                            <p:column headerText="Status"> 
                                <h:outputText value="#{quotation.status}" />                                             
                            </p:column> 

                        </p:dataTable>

                    </p:panel>
                    <table class="panel">
                        <tr>
                            <td class="btn">
                                <p:commandButton id="btnDone" value="Done" actionListener="#{jobManagerBean.back}"  update="error" ajax="true" /> 
                            </td>
                        </tr>
                    </table>

                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>
